package com.thx.addressbook.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;



/**
 * Addressbook entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ADDRESSBOOK")
public class Addressbook implements java.io.Serializable {

  private static final long serialVersionUID = 1L;

  public String toString() {
    return ToStringBuilder.reflectionToString(this, ToStringStyle.DEFAULT_STYLE);
  }

  // Fields
  @Id
  /*
   * @GeneratedValue(strategy = GenerationType.SEQUENCE,generator="payablemoney_seq")
   * 
   * @SequenceGenerator(name="payablemoney_seq", sequenceName="SEQ_ADDRESSBOOK",allocationSize=1)
   */

  @GeneratedValue(strategy = GenerationType.TABLE, generator = "tab-store")
  @TableGenerator(name = "tab-store", table = "tb_generator", pkColumnName = "gen_name",
      valueColumnName = "gen_value", pkColumnValue = "SEQ_ADDRESSBOOK", allocationSize = 1)
  private Long priId;
  private Long enterpriseId;
  private Long agId;
  private String addressbookName;
  private String addressbookSex;
  private String addressbookDuty;
  private String addressbookMobile;
  private String addressbookPhone;
  private String addressbookCompany;
  private String addressbookQq;
  private String addressbookShortmobile;
  private String addressbookMail;
  private String addressbookLocation;
  private String addressbookRemark;
  private Date createTime;
  private Date updateTime;
  private String updateUser;
  private String createUser;
  private Long createId;
  @Transient
  private String fullSpell;// fengjinshou 20160201 名字全拼
  @Transient
  private String initialSpell;// fengjinshou 20160201 名字首字母

  // Constructors

  /** default constructor */
  public Addressbook() {}

  /** full constructor */
  public Addressbook(Long enterpriseId, Long agId, String addressbookName, String addressbookSex,
      String addressbookDuty, String addressbookMobile, String addressbookPhone,
      String addressbookCompany, String addressbookQq, String addressbookShortmobile,
      String addressbookMail, String addressbookLocation, String addressbookRemark) {
    this.enterpriseId = enterpriseId;
    this.agId = agId;
    this.addressbookName = addressbookName;
    this.addressbookSex = addressbookSex;
    this.addressbookDuty = addressbookDuty;
    this.addressbookMobile = addressbookMobile;
    this.addressbookPhone = addressbookPhone;
    this.addressbookCompany = addressbookCompany;
    this.addressbookQq = addressbookQq;
    this.addressbookShortmobile = addressbookShortmobile;
    this.addressbookMail = addressbookMail;
    this.addressbookLocation = addressbookLocation;
    this.addressbookRemark = addressbookRemark;
  }

  // Property accessors

  public Long getPriId() {
    return this.priId;
  }

  public void setPriId(Long priId) {
    this.priId = priId;
  }

  public Long getEnterpriseId() {
    return this.enterpriseId;
  }

  public void setEnterpriseId(Long enterpriseId) {
    this.enterpriseId = enterpriseId;
  }

  public Long getAgId() {
    return this.agId;
  }

  public void setAgId(Long agId) {
    this.agId = agId;
  }

  public String getAddressbookName() {
    return this.addressbookName;
  }

  public void setAddressbookName(String addressbookName) {
    this.addressbookName = addressbookName;
  }

  public String getAddressbookSex() {
    return this.addressbookSex;
  }

  public void setAddressbookSex(String addressbookSex) {
    this.addressbookSex = addressbookSex;
  }

  public String getAddressbookDuty() {
    return this.addressbookDuty;
  }

  public void setAddressbookDuty(String addressbookDuty) {
    this.addressbookDuty = addressbookDuty;
  }

  public String getAddressbookMobile() {
    return this.addressbookMobile;
  }

  public void setAddressbookMobile(String addressbookMobile) {
    this.addressbookMobile = addressbookMobile;
  }

  public String getAddressbookPhone() {
    return this.addressbookPhone;
  }

  public void setAddressbookPhone(String addressbookPhone) {
    this.addressbookPhone = addressbookPhone;
  }

  public String getAddressbookCompany() {
    return this.addressbookCompany;
  }

  public void setAddressbookCompany(String addressbookCompany) {
    this.addressbookCompany = addressbookCompany;
  }

  public String getAddressbookQq() {
    return this.addressbookQq;
  }

  public void setAddressbookQq(String addressbookQq) {
    this.addressbookQq = addressbookQq;
  }

  public String getAddressbookShortmobile() {
    return this.addressbookShortmobile;
  }

  public void setAddressbookShortmobile(String addressbookShortmobile) {
    this.addressbookShortmobile = addressbookShortmobile;
  }

  public String getAddressbookMail() {
    return this.addressbookMail;
  }

  public void setAddressbookMail(String addressbookMail) {
    this.addressbookMail = addressbookMail;
  }

  public String getAddressbookLocation() {
    return this.addressbookLocation;
  }

  public void setAddressbookLocation(String addressbookLocation) {
    this.addressbookLocation = addressbookLocation;
  }

  public String getAddressbookRemark() {
    return this.addressbookRemark;
  }

  public void setAddressbookRemark(String addressbookRemark) {
    this.addressbookRemark = addressbookRemark;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getUpdateTime() {
    return updateTime;
  }

  public void setUpdateTime(Date updateTime) {
    this.updateTime = updateTime;
  }

  public String getUpdateUser() {
    return updateUser;
  }

  public void setUpdateUser(String updateUser) {
    this.updateUser = updateUser;
  }

  public String getCreateUser() {
    return createUser;
  }

  public void setCreateUser(String createUser) {
    this.createUser = createUser;
  }

  public Long getCreateId() {
    return createId;
  }

  public void setCreateId(Long createId) {
    this.createId = createId;
  }

  public String getFullSpell() {
    return fullSpell;
  }

  public void setFullSpell(String fullSpell) {
    this.fullSpell = fullSpell;
  }

  public String getInitialSpell() {
    return initialSpell;
  }

  public void setInitialSpell(String initialSpell) {
    this.initialSpell = initialSpell;
  }

}
